<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="css/bootstrap.css" rel="stylesheet">
    <link href="css/public.css" rel="stylesheet">
    <title>注册页</title>
</head>
<body>

<div class="nav top">
    <ul class="nav navbar-nav navbar-right top-list">
         <li><a href="#">关于我们</a></li>
        <li><a href="regist.jsp">注册</a></li>
        <li><a href="login.jsp">登录</a></li>
    </ul>
</div>

<div class="container main-container">
    <div class="nav-img">
        <img src="img/index-nav.png">
    </div>
    <div class="search">
       <form action="<c:url value='/SeedServlet'/>" method="post">
         <input type="hidden" name="method" value="query"/>
            <div class="form-group">
                <input type="search" class="form-control">
                <button class="btn-default search-btn"></button>
            </div>
        </form>
    </div>

    <nav class="nav nav-main">

        <ul class="nav navbar-nav nav-list">
          <li><a href="index">首页</a></li>
             <li><a href="<c:url value='/AdminSeedServlet?method=addPre1'/>">上传产品</a></li>
           <li><a href="<c:url value='/SeedServlet?method=findAll'/>">产品列页</a></li>
            <li><a href="<c:url value='/CategoryServlet?method=findAll'/>">所有分类</a></li>
            <li><a href="<c:url value='/SeedServlet?method=messageGet'/>">留言板</a></li>
        </ul>
    </nav>

    <!--以上在后台设计的时候放到一个页面中，让别的页面去引用它-->
    <div class="row">
        <div class="col-md-9">
            <div class="panel panel-green">
                <div class="panel-heading">
                    <div class="panel-title">
                        注册
                    </div>
                </div>
                <div class="panel-body">
                    <div class="col-md-offset-3 col-md-6 login">
                    <p style="color: red; font-weight: 900">${msg }</p><!-- 显示异常错误 -->
                       <form action="<c:url value='/UserServlet'/>" method="post">
	<input type="hidden" name="method" value="regist"/>
                            <div class="form-group">
                                <span>账号：</span>
                                <input type="text" name="username" value="${form.username }" placeholder="账号" class="form-control">
                            </div>
                            <div class="form-group">
                                <span>密码：</span><input type="password" name="password" value="${form.password }" placeholder="密码" class="form-control">
                               <!--  <button class="btn btn-primary col-md-offset-5" style="margin-top: 30px" >注册</button>-->
                               <input type="submit" class="btn btn-primary col-md-offset-5" style="margin-top: 30px" value="注册"/>
                                <a href="login.jsp"  style="position: relative;top: 16px;left: 50px;">登录</a>
                            </div>

                        </form>
                    </div>
                </div>
            </div>

        </div>

        <!--下列是一个右侧栏，设计的时候也要单独放一个文件中-->
        <div class="col-md-3">
            <div class="panel panel-green">
                <div class="panel-heading">
                    <div class="panel-title">
                        <span class="glyphicon glyphicon-tag">&nbsp;</span>叶菜类
                    </div>
                </div>
                <div class="panel panel-body recommend">
                    <ul>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                    </ul>
                </div>
            </div>


            <div class="panel panel-green">
                <div class="panel-heading">
                    <div class="panel-title">
                        <span class="glyphicon glyphicon-tag">&nbsp;</span>叶菜类
                    </div>
                </div>
                <div class="panel panel-body recommend">
                    <ul>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                    </ul>
                </div>
            </div>

            <div class="panel panel-green">
                <div class="panel-heading">
                    <div class="panel-title">
                        <span class="glyphicon glyphicon-tag">&nbsp;</span>叶菜类
                    </div>
                </div>
                <div class="panel panel-body recommend">
                    <ul>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>



    <!--以下单独放单独引用-->
    <div class="row">
        <div class="col-md-12">
            <div class="public-bottom">
                <div>
                    <p>郑州轻工业学院科学大道166号 计算机与通信工程学院 电子信息工程学院 大学生科技创业中心 </p>
                    <p style="text-align: center">联系电话：18790802327 &nbsp;&nbsp;&nbsp;版权所有：大学生科技创业中心</p>
                </div>
            </div>
        </div>
    </div>
</div>


</body>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</html>